import request from '@/common/utils/request'

export function getTestOrderList(data) {
  return request({
    url: 'test-order/list',
    method: 'post',
    data
  })
}

export function getTestOrderAllList(data) {
  return request({
    url: 'test-order/all-list',
    method: 'post',
    data
  })
}

export function getTestOrderAllRecycleBinList(data) {
  return request({
    url: 'test-order/all-recycle-bin-list',
    method: 'post',
    data
  })
}

export function getTestCarOrder(data) {
  return request({
    url: 'test-order/car-order',
    method: 'post',
    data
  })
}


export function getTaskUpdateList(data) {
  return request({
    url: 'test-order/get-task-update-list',
    method: 'post',
    data
  })
}
// export function addTestOrder(data) {
//   return request({
//     url: 'test-order/add',
//     method: 'post',
//     data
//   })
// }

// export function updateTestOrder(data) {
//   return request({
//     url: 'test-order/update',
//     method: 'post',
//     data
//   })
// }

export function saveOrNextTestOrder(data) {
  return request({
    url: 'test-order/save-or-next',
    method: 'post',
    data
  })
}

export function deleteTestOrder(data) {
  return request({
    url: 'test-order/delete',
    method: 'post',
    data
  })
}

export function getTestOrderTaskList(data) {
  return request({
    url: 'test-order/get-task-list',
    method: 'post',
    data
  })
}

export function getTestOrderTaskLogs(data) {
  return request({
    url: 'test-order/get-test-order-task-logs',
    method: 'post',
    data
  })
}


export function getTaskItemsCarAndLogsId(data) {
  return request({
    url: 'test-order/get-task-items-car-and-logs-id',
    method: 'post',
    data
  })
}

export function taskSaveOrNext(data) {
  return request({
    url: 'test-order/task-save-or-next',
    method: 'post',
    data
  })
}

export function taskBack(data) {
  return request({
    url: 'test-order/task-back',
    method: 'post',
    data
  })
}

export function taskToUser(data) {
  return request({
    url: 'test-order/task-to-user',
    method: 'post',
    data
  })
}

// 获取订单信息
export function getOrderInfo(data) {
  return request({
    url: 'test-order/get-order-info',
    method: 'post',
    data
  })
}
//提交下单后的任务
export function getSubmitOrder(data) {
  return request({
    url: 'test-order/order-submit',
    method: 'post',
    data
  })
}
// 下发任务
export function orderNext(data) {
  return request({
    url: 'test-order/order-next',
    method: 'post',
    data
  })
}

// 修改订单
export function updateOrder(data) {
  return request({
    url: 'test-order/update-order',
    method: 'post',
    data
  })
}

// 结束订单
export function doneOrder(data) {
  return request({
    url: 'test-order/done-order',
    method: 'post',
    data
  })
}

// 修改订单2
export function updateOrder2(data) {
  return request({
    url: 'test-order/update-order-proceed',
    method: 'post',
    data
  })
}


// 修改订单3
export function updateOrderPrice(data) {
  return request({
    url: 'test-order/update-order-price',
    method: 'post',
    data
  })
}


export function updateOrderSettlement(data) {
  return request({
    url: 'test-order/update-order-settlement',
    method: 'post',
    data
  })
}
export function updateOrderPay(data) {
  return request({
    url: 'test-order/update-order-pay',
    method: 'post',
    data
  })
}


// 回退
export function back(data) {
  return request({
    url: 'test-order/back',
    method: 'post',
    data
  })
}
